import request from '@/utils/request'

export function getUserGroupList (params:any) {
    return request({
        url: 'user.userGroup/list',
        method: 'GET',
        params
    })
}

export function getUserGroupSelect () {
    return request({
        url: 'user.userGroup/select',
        method: 'GET'
    })
}

export function createUserGroup (data:any) {
    return request({
        url: 'user.userGroup/create',
        method: 'POST',
        data
    })
}
export function updateUserGroup (data:any) {
    return request({
        url: `user.userGroup/update`,
        method: 'PUT',
        data
    })
}
export function delUserGroup (data:{id:number|string}) {
    return request({
        url: `user.userGroup/delete`,
        method: 'DELETE',
        data
    })
}

export function getUserGroupDetail (params:{id:number|string}) {
    return request({
        url: `user.userGroup/detail`,
        method: 'GET',
        params
    })
}